package com.example.demo.test123;

import com.example.demo.mapper.SevenZMapper;
import com.example.demo.mode1.Seven;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;


@Controller
public class Testseven {
    @Resource
    private SevenZMapper sevenZMapper;

    @ResponseBody
    @RequestMapping("/seven")
    public HashMap echers2() {

        HashMap map = new HashMap();
        ArrayList<Seven> selectalls = sevenZMapper.selectalls();
        map.put("datas",selectalls);
        System.out.println(selectalls);
        return map;
    }

}





